<template>
	<view>
		<u-cell-group>
			<u-cell size="large" is-link title="个人资料" link-type="navigateTo" url="/service/myinfo/myinfo" />
			<u-cell size="large" is-link title="用户协议" link-type="navigateTo" :url="'/service/info/info?id=' + agreement_id + '&name=' + '用户协议'" />
			<u-cell size="large" is-link title="隐私政策" link-type="navigateTo" :url="'/service/info/info?id=' + privacy_id + '&name=' + '隐私政策'" />
			<u-cell size="large" is-link title="关于我们" link-type="navigateTo" url="/service/about/about" />
		</u-cell-group>
		<view class="logout z-margin-t-100 z-margin-lr-32 z-font-28 z-radius-8 z-padding-24 z-font-w" @tap="out">退出登录</view>
	</view>
</template>

<script>
export default {
	data() {
		return {
			config:uni.getStorageSync('config')
			
		};
	},
	onLoad() {
		this.agreement_id = uni.getStorageSync('config').user_agreement_info_id
		this.privacy_id = uni.getStorageSync('config').user_privacy_info_id
	},
	methods: {
		out() {
			uni.setStorageSync('token', '');
			uni.setStorageSync('user', '');
			uni.setStorageSync('userInfo', '');
			uni.reLaunch({
				url: '/pages/index/index'
			});
		}
	}
};
</script>

<style lang="scss">
page {
	background-color: #fff;
}
.logout {
	background: rgba(98, 203, 129, 0.1);
	color: $uni-maingreencolor;
	width: 686rpx;
	text-align: center;
	box-sizing: border-box;
}
</style>
